package com.freewater.javabase.demo.designpattern.templatemethod;

public class TemplateMethodDemo {
    public static void main(String[] args) {
        AbstractSetting setting = new LocalSetting();
        System.out.println(setting.getSetting("abc"));
        System.out.println(setting.getSetting("abc"));

        setting = new GuavaSetting();
        System.out.println(setting.getSetting("abc"));
        System.out.println(setting.getSetting("abc"));
    }
}
